home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = " External Objects"
- ClientHeight = 3105
- ClientLeft = 2370
- ClientTop = 3705
- ClientWidth = 3030
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3105
- ScaleWidth = 3030
- Begin VB.CommandButton CmdOk
- Caption = "Ok"
- Height = 372
- Left = 840
- TabIndex = 1
- Top = 2520
- Width = 1212
- End
- Begin VB.ListBox List1
- Height = 1815
- Left = 240
- TabIndex = 0
- Top = 360
- Width = 2415
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Const gkGroup = 7
- Private Num As Long
- Private Sub CmdOk_Click()
- Dim Gr As Object
- If Form1.List1.Text = "Gear.Bearing" Then
- Set Gr = Grs.Add(gkGroup, Num)
- Else
- Set Gr = Grs.Add(gkGraphic, Num)
- End If
- Gr.Draw
- End Sub
- Private Sub List1_Click()
- Dim Gr As Object
- Dim Str1$
- Str1 = Form1.List1.Text
- Num = Form1.List1.ItemData(Form1.List1.ListIndex)
- Num = Num + 1
- End Sub
- Private Sub List1_KeyPress(KeyAscii As Integer)
- Dim Num As Long
- Dim Str1$
- If KeyAscii = 13 And List1.ListIndex >= 0 Then
- Str1 = Form1.List1.Text
- Num = Form1.List1.ItemData(Form1.List1.ListIndex)
- Num = Num + 1
- End If
- If KeyAscii = 27 Then
- Me.Hide
- End If
- End Sub
-